import openpyxl,time
from gjz.Base import Base
from gjz.keywords import driver
def test_a3mall_login(driver):
    word_sheet=openpyxl.load_workbook(r'D:\PYCHARM2024\day9-7\moni_yuekao_lianxi\gjz\a3mall.xlsx')
    exe=word_sheet['Sheet1']
    a=Base(driver)

    for i in exe.iter_rows(min_row=2,values_only=True):
        action=i[2]
        params={}
        if action == 'open_url':
            params['url'] = i[5]
        elif action == 'sleep':
            params['writ_time'] = i[5]
        elif action == ['click','fill']:
            type=i[4]
            shuru=i[5]
            if action == ['fill']:
                params['info'] = [type,shuru]
